package com.stox.client.embedded.data.provider;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stox.client.api.data.provider.ExchangeClient;
import com.stox.services.data.provider.manager.ExchangeManager;
import com.stox.shared.model.Exchange;

@Component
public class EmbeddedExchangeClient implements ExchangeClient {
	
	@Autowired
	private ExchangeManager exchangeManager;
	
	@Override
	public List<Exchange> findAll() {
		return exchangeManager.findAll();
	}
	
	@Override
	public Exchange findOne(Long id) {
		return exchangeManager.findOne(id);
	}

}
